<!-- 接线检查 -->
<div class="step7">
    <ion-scroll scrollY="true" style="height:80%;">
        <div class="step7-one" *ngIf="Step.state == 1">
            <h3>{{ roomInfo.Meter }}</h3>
            <div *ngIf="CodeInfo.CodeInfo1 && CodeInfo.CodeInfo1.length">
                <div>
                    <span></span><label for="">安装记录</label>
                </div>
                <div>
                    <ul>
                        <li style="width:100%" *ngFor="let data of CodeInfo.CodeInfo1,let i = index">
                            <label>{{ data.name }}：</label>
                            <p [ngStyle]="{color: data.name === '安装时间'? '#00b5ff': '#222'}">{{ data.value }}</p>
                            <span *ngIf="data.time">( {{ data.time }} )</span>
                        </li>
                    </ul>
                </div>
            </div>

            <div *ngIf="CodeInfo.CodeInfo2 && CodeInfo.CodeInfo2.length">
                <div>
                    <span></span><label for="">铭牌</label>
                </div>
                <div>
                    <ul>
                        <li *ngFor="let data of CodeInfo.CodeInfo2,let i = index">
                            <label>{{ data.name }}：</label>
                            <p>{{ data.value }}</p>
                        </li>
                    </ul>
                </div>
            </div>

            <div *ngIf="CodeInfo.CodeInfo3 && CodeInfo.CodeInfo3.length">
                <div>
                    <span></span><label for="">设置参数</label>
                </div>
                <div>
                    <ul>
                        <li *ngFor="let data of CodeInfo.CodeInfo3,let i = index">
                            <label>{{ data.title }}：</label>
                            <p *ngIf="data.defaultName">{{ data.defaultName[0] }}</p>
                            <p *ngIf="!data.defaultName">{{ data.defaultValue[0] }}</p>
                            <p *ngIf="data.unit" style="margin-left: 5px;">{{ data.unit }}</p>
                        </li>
                    </ul>
                </div>
            </div>

            <div *ngIf="CodeInfo.CodeInfo4 && CodeInfo.CodeInfo4.length" [ngStyle]="{ height : CodeInfo.CodeInfo3 && CodeInfo.CodeInfo3.length ? '30%' : '50%'}">
                <div>
                    <span></span><label for="">采集数据</label>
                </div>
                <div style="height:80%">
                    <ul>
                        <li *ngFor="let data of CodeInfo.CodeInfo4,let i = index">
                            <label>{{ data.dataName }}：</label>
                            <p>{{ data.dataValue }}</p>
                            <i *ngIf="data.check"></i>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </ion-scroll>
</div>
<ion-footer>
    <button (click)="toNext(6)">完成</button>
</ion-footer>